#ifndef BOOK_H_
#define BOOK_H_
#include "publication.h"
#include <iostream>
class Book : public Publication {
private:
  int page;

public:
  Book(const std::string &title, const std::string &name, double price,
       long int date)
      : Publication(title, name, price, date), page(0) {}
  Book(const Publication &pc) : Publication(pc), page(0) {}
  Book(const Publication &pc, int page) : Publication(pc), page(page) {}
  ~Book() {}
  void setPage(int page) { this->page = page; }
  int getPage() { return page; }
  void inputData() {
    Publication::inputData();
    std::cout << "input page:" << std::endl;
    std::cin >> page;
  }
  void display() {
    Publication::display();
    std::cout << "page: " << page << std::endl;
  }
};
#endif